﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharp.Study.ExpTest
{
    public class ExpData
    {
        public static List<Book> Books = new List<Book>()
        {
            new Book(1,"书1",9.9m,new DateTime(2020,6,6),"111"),
            new Book(2,"书2",12.9m,new DateTime(2020,7,6),"222"),
            new Book(3,"书3",6.5m,new DateTime(2020,6,12),"333"),
            new Book(4,"书4",5.9m,new DateTime(2020,6,8),"444"),
            new Book(5,"书5",15.5m,new DateTime(2020,7,1),"555"),
            new Book(6,"书6",13.5m,new DateTime(2020,7,3),"666")
        };

        public class Book
        {
            public int Id { get; set; }

            public string Title { get; set; }

            public decimal Price { get; set; }

            public DateTime CreateTime { get; set; }

            public string Remark { get; set; }

            public Book(int id, string title, decimal price, DateTime createtime, string remark)
            {
                Id = id;
                Title = title;
                Price = price;
                CreateTime = createtime;
                Remark = remark;
            }
        }
    }
}
